
window.addEventListener('load', function () {
	        var day = document.querySelector('.day')
	        var hours = document.querySelector('.hours')
	        var minutes = document.querySelector('.minutes')
	        var seconds = document.querySelector('.seconds')
	        function countDown(time) {
	            var nowTime = +new Date(); // 返回当前时间总的毫秒数
	            var inputTime = +new Date(time); // 返回输入时间总的毫秒数
	            var times = (nowTime - inputTime) / 1000; //剩余时间总的秒数 
	            var d = parseInt(times / 60 / 60 / 24).toString().padStart(2, '0') // 天
	            var h = parseInt(times / 60 / 60 % 24).toString().padStart(2, '0') //时
	            var m = parseInt(times / 60 % 60).toString().padStart(2, '0') // 分
	            var s = parseInt(times % 60).toString().padStart(2, '0')// 当前的秒
	            day.innerHTML = d + '天'
	            hours.innerHTML = h + '时'
	            minutes.innerHTML = m + '分'
	            seconds.innerHTML = s + '秒'
	        }
	        // countDown('2022-12-12 00:00:00')
	        setInterval(function () {
	            countDown('1995-4-15 00:00:00')}, 1000)
	    })
    document.addEventListener("keydown", function (event){
        if (event.ctrlKey){
            event.preventDefault();
        }
        if(event.keyCode == 123){
            event.preventDefault();
        }
    });
    document.addEventListener('contextmenu',
        event => event.preventDefault()
    );